#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{  
	int n = 1;
	while (n <= 100)
	{if(n%3==0)
		printf("%d ", n);
	n++;
	}
	return 0;
}